* Get an object referring to a locally registered file.
* Returns a valid placeholder object if the file does not exist.
*/
-function wfLocalFile( $title, $time = false ) {
- return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time );
+function wfLocalFile( $title ) {
+ return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
}
/**
parent::__construct( $title );
$this->img = wfFindFile( $this->mTitle, $time );
if ( !$this->img ) {
- $this->img = wfLocalFile( $this->mTitle, $time );
+ $this->img = wfLocalFile( $this->mTitle );
}
$this->repo = $this->img->repo;
}